# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=py3-more-itertools
_pkgname=more-itertools
pkgver=8.4.0
pkgrel=0
pkgdesc="More routines for operating on iterables, beyond itertools."
url="https://github.com/erikrose/more-itertools"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
source="$_pkgname-$pkgver.tar.gz::https://github.com/erikrose/more-itertools/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-more-itertools" # Backwards compatibility
provides="py-more-itertools=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="66ce46087ddc89bf92882f4ca0f77449289de001a1f938c6d4f505e02fcc2dc1e204b3b817f927ee65940979445e5580e33dcaddabfd83adf4b46201cce10180  more-itertools-8.4.0.tar.gz"
